<div class="m-tab s-tab">
	<h2 class="u-tt">站点设置</h2>
	<ul class="u-tabs">
		<li><a href="#tab1" class="tab-on tab-a">站点信息</a></li>
		<li><a href="#tab2" class="tab-a">模板设置</a></li>
		<li><a href="#tab3" class="tab-a">分页设置</a></li>
	</ul>
</div>
<div class="m-form">
	<form name="" action="{$url|'AdminSiteConfig/editData'}" method="post" id="form">
		<fieldset>
			<div id="tab1">
				<div class="formitm">
					<label class="lab" >站点标题：</label>
					<div class="ipt">
						<input name="site_title" type="text" class="u-ipt u-ipt-5" id="site_title" value="{$info.site_title}"  datatype="*" />
						<p>显示在网站头部的标题信息</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >站点副标题：</label>
					<div class="ipt">
						<input name="site_subtitle" type="text" class="u-ipt u-ipt-5" id="site_subtitle" value="{$info.site_subtitle}" />
						<p>网站的副标题信息</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >站点网址：</label>
					<div class="ipt">
						<input name="site_url" type="text" class="u-ipt u-ipt-5" id="site_url" value="{$info.site_url}" />
						<p>仅作为调用使用</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >站点键词：</label>
					<div class="ipt">
						<input name="site_keywords" type="text" class="u-ipt u-ipt-5" id="site_keywords" value="{$info.site_keywords}" />
						<p>针对搜索引擎的站点关键词</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >站点描述：</label>
					<div class="ipt">
						<textarea name="site_description" class="u-tta u-tta-5" id="site_description" >{$info.site_description}</textarea>
						<p>针对搜索引擎的站点简介信息</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >站长邮箱：</label>
					<div class="ipt">
						<input name="site_email" type="text" class="u-ipt u-ipt-5" id="site_email" value="{$info.site_email}" />
						<p>用于邮箱显示</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >站点版权：</label>
					<div class="ipt">
						<input name="site_copyright" type="text" class="u-ipt u-ipt-5" id="site_copyright" value="{$info.site_copyright}" />
						<p>站点底部版权信息</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >统计代码：</label>
					<div class="ipt">
						<textarea name="site_statistics" class="u-tta u-tta-5" id="site_statistics" >{$info.site_statistics}</textarea>
						<p>放置网站统计代码</p> </div>
				</div>
			</div>
			<div id="tab2" class="m-tabpanel">
				<div class="formitm">
					<label class="lab" >模板目录：</label>
					<div class="ipt">
						<input name="tpl_dir" type="text" class="u-ipt u-ipt-5" id="tpl_dir" value="{$info.tpl_dir}"  datatype="*" />
						<p>填写themes下模板目录</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >首页模板：</label>
					<div class="ipt">
						<input name="tpl_name_index" type="text" class="u-ipt u-ipt-5" id="tpl_name_index" value="{$info.tpl_name_index}"  datatype="*" />
						<p>首页模板</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >搜索模板：</label>
					<div class="ipt">
						<input name="tpl_name_search" type="text" class="u-ipt u-ipt-5" id="tpl_name_search" value="{$info.tpl_name_search}"  datatype="*" />
						<p>搜索结果基础模板</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >TAG模板：</label>
					<div class="ipt">
						<input name="tpl_name_tags" type="text" class="u-ipt u-ipt-5" id="tpl_name_tags" value="{$info.tpl_name_tags}"  datatype="*" />
						<p>会自动生成TAG列表模板名称</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >TAG分页数：</label>
					<div class="ipt">
						<input name="tpl_page_tags" type="text" class="u-ipt u-ipt-5" id="tpl_page_tags" value="{$info.tpl_page_tags}"  datatype="n" errormsg="只能为数字" />
						<p>单位：条</p> </div>
				</div>
				<div class="formitm">
					<label class="lab" >搜索分页数：</label>
					<div class="ipt">
						<input name="tpl_page_search" type="text" class="u-ipt u-ipt-5" id="tpl_page_search" value="{$info.tpl_page_search}" datatype="n" errormsg="只能为数字" />
						<p>单位：条</p> </div>
				</div>
			</div>
			<div id="tab3" class="m-tabpanel">
				<div class="formitm">
					<label class="lab" >下一页：</label>
					<div class="ipt">
						<input name="page_next" type="text" class="u-ipt u-ipt-5" id="page_next" value="{$info.page_next|is_empty:'下一页'}"  datatype="*" />
						<p>下一页文字描述</p> 
					</div>
				</div>
				<div class="formitm">
					<label class="lab" >上一页：</label>
					<div class="ipt">
						<input name="page_pre" type="text" class="u-ipt u-ipt-5" id="page_pre" value="{$info.page_pre|is_empty:'上一页'}"  datatype="*" />
						<p>上一页文字描述</p> 
					</div>
				</div>
				<div class="formitm">
					<label class="lab" >第一页：</label>
					<div class="ipt">
						<input name="page_first" type="text" class="u-ipt u-ipt-5" id="page_first" value="{$info.page_first|is_empty:'首页'}"  datatype="*" />
						<p>分页第一页文字描述</p> 
					</div>
				</div>
				<div class="formitm">
					<label class="lab" >最后页：</label>
					<div class="ipt">
						<input name="page_last" type="text" class="u-ipt u-ipt-5" id="page_last" value="{$info.page_last|is_empty:'尾页'}"  datatype="*" />
						<p>最后一页文字描述</p> 
					</div>
				</div>
				<div class="formitm">
					<label class="lab" >页数：</label>
					<div class="ipt">
						<input name="page_num" type="text" class="u-ipt u-ipt-5" id="page_num" value="{$info.page_num|is_empty:'10'}"  datatype="n" />
						<p>分页栏每页显示的页数</p> 
					</div>
				</div>
				<div class="formitm">
					<label class="lab" >分页样式：</label>
					<div class="ipt">
						<select name="page_show" class="u-slt" id="page_show">
							<option value="1" {if="$info['page_show']==1"} selected="selected" {/if} >样式一</option>
							<option value="2" {if="$info['page_show']==2"} selected="selected" {/if} >样式二</option>
							<option value="3" {if="$info['page_show']==3"} selected="selected" {/if} >样式三</option>
							<option value="4" {if="$info['page_show']==4"} selected="selected" {/if} >样式四</option>
						</select>
						<p>分页样式</p> 
					</div>
				</div>
			</div>
			<div class="formitm formitm-1  formitm-2">
				<button class="u-btn" type="submit">保存配置</button>
				<button class="u-btn s-btn-c3" type="reset">重置</button>
				<span class="status" id="status"></p> </div>
		</fieldset>
	</form>
</div>
<script>
Do.ready('base','form','dialog','tabs',function() {
	$('#form').duxForm();
	$(".u-tabs li .tab-a").powerSwitch({classAdd : "tab-on"});
});
</script>